import javax.swing.plaf.basic.BasicSplitPaneUI;

public class Test {


    public static void main(String[] args) {

        MySingleList mySingleList = new MySingleList();
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.addLast(56);
        mySingleList.show();
        System.out.println("====================");

        int a = mySingleList.kthToLast(2);
        System.out.println(a);

        MySingleList.ListNode node = mySingleList.middleNode();
        System.out.println(node);

        MySingleList.ListNode node2 = MySingleList.reverseList(mySingleList.head);

    }
}
